package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.User;

public interface IUserService extends IService<User> {

    /**
     * 分页查询
     * @param currentPage
     * @param pageSize
     * @param user
     * @return
     */
    IPage<User> getUsers(int currentPage, int pageSize, User user);

    /**
     * 用户登录
     * @param username
     * @return
     */
    User getUser(String username);
}
